<?php echo $this->fetch('header.html'); ?>

<div id="integral">

    <div class="integral_goods">
<?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['fe_goods'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['fe_goods']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['fe_goods']['iteration']++;
?>
        <a href="<?php echo url('app=goods&id=' . $this->_var['goods']['goods_id']. ''); ?>" class="com-wgt">
            <div class="com-wp">
                <div class="clearfix com-cnt">
                    <div class="com-pic">
                        <img  class="lazyload" initial-url="<?php echo $this->_var['site_url']; ?>/<?php echo $this->_var['goods']['default_image']; ?>">
                    </div>
                    <div class="com-info clearfix"><div class="com-title"><span><?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?></span></div>
                        <div class="origin-price"><i>¥</i><i class="money"><?php echo $this->_var['goods']['price']; ?></i></div>
                        <div class="use_integral">可使用<span class="red"><?php echo $this->_var['goods']['integral_max_exchange']; ?>积分</span></div>
                        <span class="go_to_buy">立即购买</span>
                    </div>
                </div>
            </div>
        </a>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php echo $this->fetch('page.bottom.html'); ?>
    </div>
    
    
</div>


<?php echo $this->fetch('footer.html'); ?>